﻿using System;

namespace Stock.Model
{
    public class order:BaseEntity
    {
        public Guid userid { get; set; }

        public DateTime create_date { get; set; }

        /// <summary>
        /// 是否买对  1对，2错 ，3，平
        /// </summary>
        /// <value><c>true</c> if success; otherwise, <c>false</c>.</value>
        public int success { get; set; }

        /// <summary>
        /// 订单状态 0：未结算，1：已结算
        /// </summary>
        /// <value>The status.</value>
        public int status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        /// <value>The time.</value>
        public long time { get; set; }

        /// <summary>
        /// 多少手
        /// </summary>
        /// <value>The count.</value>
        public double count { get; set; }

        /// <summary>
        /// 多少钱
        /// </summary>
        /// <value>The moneny.</value>
        public long moneny { get; set; }

        /// <summary>
        /// 买、卖（1买涨、2卖跌） 
        /// </summary>
        /// <value>The type.</value>
        public int type { get; set; }

        /// <summary>
        /// 行情记录id
        /// </summary>
        /// <value>The stockid.</value>
        public Guid stockid { get; set; }

		/// <summary>
		/// 佣金
		/// </summary>
		/// <value>The commission.</value>
        public double commission { get; set; }

        /// <summary>
        /// 结算时间
        /// </summary>
        /// <value>The count time.</value>
        public DateTime count_time { get; set; }

        /// <summary>
        /// 订单的5分开仓价
        /// </summary>
        /// <value>The start price.</value>
        public double start_price { get; set; }

        /// <summary>
        /// 订单5分平仓价
        /// </summary>
        /// <value>The end price.</value>
        public double end_price { get; set; }

        public order()
        {
        }
    }
}
